﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BanHangCshap.Class
{
    class BoSanPhamCT:Database
    {
        #region ***** Fields & Properties *****
        private string _mabosp;
        public string mabosp
        {
            get
            {
                return _mabosp;
            }
            set
            {
                _mabosp = value;
            }
        }
        private string _mahang;
        public string mahang
        {
            get
            {
                return _mahang;
            }
            set
            {
                _mahang = value;
            }
        }
        private string _dvt;
        public string dvt
        {
            get
            {
                return _dvt;
            }
            set
            {
                _dvt = value;
            }
        }
        private double _soluong;
        public double soluong
        {
            get
            {
                return _soluong;
            }
            set
            {
                _soluong = value;
            }
        }
        
        private double _dongia;
        public double dongia
        {
            get
            {
                return _dongia;
            }
            set
            {
                _dongia = value;
            }
        }
        private double _thanhtien;
        public double thanhtien
        {
            get
            {
                return _thanhtien;
            }
            set
            {
                _thanhtien = value;
            }
        }
        private float _chietkhau;
        public float chietkhau
        {
            get
            {
                return _chietkhau;
            }
            set
            {
                _chietkhau = value;
            }
        }
        #endregion
        public Boolean themBoSanPhamCT()
        {
            string[] field = { "mabosp", "mahang", "dvt", "soluong","dongia", "thanhtien" };
            object[] value = { (Object)mabosp, (object)mahang, (object)dvt, (object)soluong, (object)dongia, (object)thanhtien };
            return addTrans("BoSanPhamCT", field, value);
        }
    }
}
